package com.seewintech.framework.exception;

import com.seewintech.framework.common.exception.ExceptionEnum;
import com.seewintech.framework.common.exception.ServiceException;

/**
 * @author by xiaoTian
 * @date 2022/6/14.
 */
public enum AccountExceptionEnum implements ExceptionEnum {

    REMOVE_FALSE(001_001_001,"删除失败"),

    UPDATE_FALSE(001_001_002,"更新失败"),

    USER_PASSWORD_ERROR(001_001_003,"密码错误"),

    USER_EXIST(001_001_004,"用户已存在"),

    USER_NOT_EXIST(001_001_005,"用户不存在"),

    CONFIG_BLANK(001_001_006,"配置信息不完整"),
    USER_TOKEN_ERROR(001_001_007,"用户token已过期，请重新登录"),

    ;



    private String message;

    private Integer code;

    AccountExceptionEnum(Integer code,String message){
        this.message = message;
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
